home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / ROMDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  11.4 KB  |  295 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1986-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __ROMDEFS__
  18. #define __ROMDEFS__
  19.  
  20.  
  21.  
  22. #if PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #if PRAGMA_IMPORT
  31. #pragma import on
  32. #endif
  33.  
  34. #if PRAGMA_STRUCT_ALIGN
  35.     #pragma options align=mac68k
  36. #elif PRAGMA_STRUCT_PACKPUSH
  37.     #pragma pack(push, 2)
  38. #elif PRAGMA_STRUCT_PACK
  39.     #pragma pack(2)
  40. #endif
  41.  
  42. enum {
  43.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  44.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  45.     romRevRange                    = 9,                            /*Revision of Declaration Data Format [1..9]*/
  46.     testPattern                    = 1519594439L,                    /*FHeader long word test pattern*/
  47.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  48.     sExec2                        = 2,
  49.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  50.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  51.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  52.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  53.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  54.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  55.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  56.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  57.     board                        = 0,                            /*Board sResource - Required on all boards*/
  58.     displayVideoAppleTFB        = 16843009L,                    /*Video with Apple parameters for TFB card.*/
  59.     displayVideoAppleGM            = 16843010L,                    /*Video with Apple parameters for GM card.*/
  60.     networkEtherNetApple3Com    = 33620225L,                    /*Ethernet with apple parameters for 3-Comm card.*/
  61.     testSimpleAppleAny            = -2147417856L,                    /*A simple test sResource.*/
  62.     endOfList                    = 255,                            /*End of list*/
  63.     defaultTO                    = 100                            /*100 retries.*/
  64. };
  65.  
  66.  
  67. enum {
  68.                                                                 /* sResource flags for sRsrc_Flags */
  69.     fOpenAtStart                = 1,                            /* set => open the driver at start time, else do not */
  70.     f32BitMode                    = 2                                /* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) */
  71. };
  72.  
  73. enum {
  74.     sRsrcType                    = 1,                            /*Type of sResource*/
  75.     sRsrcName                    = 2,                            /*Name of sResource*/
  76.     sRsrcIcon                    = 3,                            /*Icon*/
  77.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  78.     sRsrcLoadDir                = 5,                            /*Load directory*/
  79.     sRsrcBootRec                = 6,                            /*sBoot record*/
  80.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  81.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  82.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  83.     minorLength                    = 11,                            /*Length of sResource's address space in standard slot space.*/
  84.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  85.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  86.     sRsrcTest                    = 14,                            /*sBlock diagnostic code*/
  87.     sRsrccicn                    = 15,                            /*Color icon*/
  88.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  89.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  90.     sDRVRDir                    = 16,                            /*sDriver directory*/
  91.     sGammaDir                    = 64,                            /*sGamma directory*/
  92.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  93.     sRsrcDock                    = 80,                            /*spID for Docking Handlers*/
  94.     sDiagRec                    = 85,                            /*spID for board diagnostics*/
  95.     sVidAuxParams                = 123,                            /*more video info for Display Manager -- timing information*/
  96.     sDebugger                    = 124,                            /*DatLstEntry for debuggers indicating video anamolies*/
  97.     sVidAttributes                = 125,                            /*video attributes data field (optional,word)*/
  98.     fLCDScreen                    = 0,                            /* bit 0 - when set is LCD, else is CRT*/
  99.     fBuiltInDisplay                = 1,                            /*      1 - when set is built-in (in the box) display, else not*/
  100.     fDefaultColor                = 2,                            /*      2 - when set display prefers multi-bit color, else gray*/
  101.     fActiveBlack                = 3,                            /*      3 - when set black on display must be written, else display is naturally black*/
  102.     fDimMinAt1                    = 4,                            /*      4 - when set should dim backlight to level 1 instead of 0*/
  103.     fBuiltInDetach                = 4,                            /*      4 - when set is built-in (in the box), but detaches*/
  104.     sVidParmDir                    = 126,
  105.     sBkltParmDir                = 140,                            /*directory of backlight tables*/
  106.     stdBkltTblSize                = 36,                            /*size of "standard" 0..31-entry backlight table*/
  107.     sSuperDir                    = 254
  108. };
  109.  
  110. /* =======================================================================    */
  111. /* sResource types                                                            */
  112. /* =======================================================================    */
  113. enum {
  114.     catBoard                    = 0x0001,                        /*Category for board types.*/
  115.     catTest                        = 0x0002,                        /*Category for test types -- not used much.*/
  116.     catDisplay                    = 0x0003,                        /*Category for display (video) cards.*/
  117.     catNetwork                    = 0x0004,                        /*Category for Networking cards.*/
  118.     catScanner                    = 0x0008,                        /*scanners bring in data somehow*/
  119.     catCPU                        = 0x000A,
  120.     catIntBus                    = 0x000C,
  121.     catProto                    = 0x0011,
  122.     catDock                        = 0x0020,                        /*<Type>*/
  123.     typeBoard                    = 0x0000,
  124.     typeApple                    = 0x0001,
  125.     typeVideo                    = 0x0001,
  126.     typeEtherNet                = 0x0001,
  127.     typeStation                    = 0x0001,
  128.     typeDesk                    = 0x0002,
  129.     typeTravel                    = 0x0003,
  130.     typeDSP                        = 0x0004,
  131.     typeXPT                        = 0x000B,
  132.     typeSIM                        = 0x000C,
  133.     typeDebugger                = 0x0100,
  134.     type68000                    = 0x0002,
  135.     type68020                    = 0x0003,
  136.     type68030                    = 0x0004,
  137.     type68040                    = 0x0005,
  138.     type601                        = 0x0025,
  139.     type603                        = 0x002E,
  140.     typeAppleII                    = 0x0015,                        /*Driver Interface : <id.SW>*/
  141.     drSwMacCPU                    = 0,
  142.     drSwAppleIIe                = 0x0001,
  143.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  144.     drSwMacsBug                    = 0x0104,
  145.     drSwDepewEngineering        = 0x0101,                        /*Driver Interface : <id.SW><id.HW>*/
  146.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  147.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  148.     drHwBSC                        = 3,
  149.     drHwGemini                    = 1,
  150.     drHwDeskBar                    = 1,
  151.     drHwHooperDock                = 2,                            /*Hooper's CatDock,TypeDesk,DrSwApple ID; registered with DTS.*/
  152.     drHwATT3210                    = 0x0001,
  153.     drHwBootBug                    = 0x0100,
  154.     drHwMicroDock                = 0x0100,                        /* video hardware id's  - <catDisplay><typVideo>*/
  155.     drHwSTB3                    = 0x0002,                        /* Assigned by Kevin Mellander for STB-3 hardware. */
  156.     drHwSTB                        = drHwSTB3,                        /* (Both STB-3 and STB-4 share the same video hardware.) */
  157.     drHwRBV                        = 0x0018,                        /* IIci Aurora25/16 hw ID */
  158.     drHwJMFB                    = 0x0019,                        /* 4o8/8o24 NuBus card */
  159.     drHwElsie                    = 0x001A,
  160.     drHwTim                        = 0x001B,
  161.     drHwDAFB                    = 0x001C,
  162.     drHwDolphin                    = 0x001D,                        /* 8o24GC NuBus card */
  163.     drHwGSC                        = 0x001E,                        /* (Renamed from GSC drHWDBLite) */
  164.     drHwDAFBPDS                    = 0x001F,
  165.     drHWVSC                        = 0x0020,
  166.     drHwApollo                    = 0x0021,
  167.     drHwSonora                    = 0x0022,
  168.     drHwReserved2                = 0x0023,
  169.     drHwColumbia                = 0x0024,
  170.     drHwCivic                    = 0x0025,
  171.     drHwBrazil                    = 0x0026,
  172.     drHWPBLCD                    = 0x0027,
  173.     drHWCSC                        = 0x0028,
  174.     drHwJET                        = 0x0029,
  175.     drHWMEMCjr                    = 0x002A,
  176.     drHwBoogie                    = 0x002B,                        /* 8o24AC nuBus video card (built by Radius) */
  177.     drHwHPV                        = 0x002C,                        /* High performance Video (HPV) PDS card for original PowerMacs */
  178.     drHwPlanaria                = 0x002D,                        /*PowerMac 6100/7100/8100 PDS AV video*/
  179.     drHwValkyrie                = 0x002E,
  180.     drHwKeystone                = 0x002F,
  181.     drHWATI                        = 0x0055,
  182.     drHwGammaFormula            = 0x0056,                        /* Use for gType of display mgr gamma tables */
  183.                                                                 /* other drHW id's for built-in functions*/
  184.     drHwSonic                    = 0x0110,
  185.     drHwMace                    = 0x0114,
  186.     drHwDblExp                    = 0x0001,                        /* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*/
  187.     MIIBoardId                    = 0x0010,                        /*Mac II Board ID*/
  188.     ciVidBoardID                = 0x001F,                        /*Aurora25 board ID*/
  189.     CX16VidBoardID                = 0x0020,                        /*Aurora16 board ID*/
  190.     MIIxBoardId                    = 0x0021,                        /*Mac IIx Board ID*/
  191.     SE30BoardID                    = 0x0022,                        /*Mac SE/30 Board ID*/
  192.     MIIcxBoardId                = 0x0023,                        /*Mac IIcx Board ID*/
  193.     MIIfxBoardId                = 0x0024,                        /*F19 board ID*/
  194.     EricksonBoardID                = 0x0028,
  195.     ElsieBoardID                = 0x0029,
  196.     TIMBoardID                    = 0x002A,
  197.     EclipseBoardID                = 0x002B,
  198.     SpikeBoardID                = 0x0033,
  199.     DBLiteBoardID                = 0x0035,
  200.     ZydecoBrdID                    = 0x0036,
  201.     ApolloBoardID                = 0x0038,
  202.     PDMBrdID                    = 0x0039,
  203.     VailBoardID                    = 0x003A,
  204.     WombatBrdID                    = 0x003B,
  205.     ColumbiaBrdID                = 0x003C,
  206.     CycloneBrdID                = 0x003D,
  207.     CompanionBrdID                = 0x003E,
  208.     DartanianBoardID            = 0x0040,
  209.     DartExtVidBoardID            = 0x0046,
  210.     HookBoardID                    = 0x0047,                        /*Hook internal video board ID*/
  211.     EscherBoardID                = 0x004A,                        /*Board ID for Escher (CSC)*/
  212.     POBoardID                    = 0x004D,                        /*Board ID for Primus/Optimus/Aladdin*/
  213.     TempestBrdID                = 0x0050,                        /*Non-official Board ID for Tempest*/
  214.     BlackBirdBdID                = 0x0058,                        /*Board ID for BlackBird*/
  215.     BBExtVidBdID                = 0x0059,                        /*Board ID for BlackBird built-in external video*/
  216.     YeagerBoardID                = 0x005A,                        /*Board ID for Yeager*/
  217.     BBEtherNetBdID                = 0x005E,                        /*Board ID for BlackBird Ethernet board*/
  218.     TELLBoardID                    = 0x0065,                        /*Board ID for TELL (Valkyrie)*/
  219.     MalcolmBoardID                = 0x065E,                        /*Board ID for Malcolm*/
  220.     AJBoardID                    = 0x065F,                        /*Board ID for AJ*/
  221.     M2BoardID                    = 0x0660,                        /*Board ID for M2*/
  222.     OmegaBoardID                = 0x0661,                        /*Board ID for Omega*/
  223.     TNTBoardID                    = 0x0670,                        /*Board ID for TNT/Alchemy/Hipclipper CPUs (did Nano just make this up?)*/
  224.     HooperBoardID                = 0x06CD,                        /*Board ID for Hooper*/
  225.                                                                 /* other board IDs*/
  226.     BoardIDDblExp                = 0x002F,
  227.     DAFBPDSBoardID                = 0x0037,
  228.     MonetBoardID                = 0x0048,
  229.     SacSONIC16BoardID            = 0x004E,
  230.     SacSONIC32BoardID            = 0x004F,                        /* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*/
  231.     drHWMacII                    = 0x0001,                        /*Mac II hw ID*/
  232.     drHwMacIIx                    = 0x0002,                        /*Mac IIx hw ID*/
  233.     drHWSE30                    = 0x0003,                        /*Mac SE/30 hw ID*/
  234.     drHwMacIIcx                    = 0x0004,                        /*Mac IIcx hw ID*/
  235.     drHWMacIIfx                    = 0x0005,                        /*Mac IIfx hw ID*/
  236.     drHWF19                        = 0x0005,                        /*F19 hw ID*/
  237.     sBlockTransferInfo            = 20,                            /*general slot block xfer info*/
  238.     sMaxLockedTransferCount        = 21,                            /*slot max. locked xfer count*/
  239.     boardId                        = 32,                            /*Board Id*/
  240.     pRAMInitData                = 33,                            /*sPRAM init data*/
  241.     primaryInit                    = 34,                            /*Primary init record*/
  242.     timeOutConst                = 35,                            /*Time out constant*/
  243.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  244.     boardFlags                    = 37,                            /*Board Flags*/
  245.     secondaryInit                = 38,                            /*Secondary init record/code*/
  246.                                                                 /* The following Id's are associated with all CPU sResources.*/
  247.     MajRAMSp                    = 129,                            /*ID of Major RAM space.*/
  248.     MinROMSp                    = 130,                            /*ID of Minor ROM space.*/
  249.     vendorId                    = 1,                            /*Vendor Id*/
  250.     serialNum                    = 2,                            /*Serial number*/
  251.     revLevel                    = 3,                            /*Revision level*/
  252.     partNum                        = 4,                            /*Part number*/
  253.     date                        = 5                                /*Last revision date of the card*/
  254. };
  255.  
  256. enum {
  257.     testByte                    = 32,                            /*Test byte.*/
  258.     testWord                    = 33,                            /*0021*/
  259.     testLong                    = 34,                            /*Test Long.*/
  260.     testString                    = 35                            /*Test String.*/
  261. };
  262.  
  263. /* sResource List. Category: Display        Type: Video */
  264. /* The following Id's are common to all Mode sResources in Display_Video */
  265. /* functional sResources. */
  266. enum {
  267.     mBlockTransferInfo            = 5,                            /* slot block xfer info PER MODE */
  268.     mMaxLockedTransferCount        = 6                                /* slot max. locked xfer count PER MODE */
  269. };
  270.  
  271.  
  272.  
  273.  
  274.  
  275. #if PRAGMA_STRUCT_ALIGN
  276.     #pragma options align=reset
  277. #elif PRAGMA_STRUCT_PACKPUSH
  278.     #pragma pack(pop)
  279. #elif PRAGMA_STRUCT_PACK
  280.     #pragma pack()
  281. #endif
  282.  
  283. #ifdef PRAGMA_IMPORT_OFF
  284. #pragma import off
  285. #elif PRAGMA_IMPORT
  286. #pragma import reset
  287. #endif
  288.  
  289. #ifdef __cplusplus
  290. }
  291. #endif
  292.  
  293. #endif /* __ROMDEFS__ */
  294.  
  295.